﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MastePage/SubEmptyMaster.Master" AutoEventWireup="true" CodeBehind="BOMView.aspx.cs" Inherits="BySoft.Web.Site.BOM.BOMView" %>

<%@ MasterType VirtualPath="~/MastePage/SubEmptyMaster.master" %>
<%@ Register Assembly="OneSoft.Web" Namespace="OneSoft.Web.UI.WebControls" TagPrefix="asp" %>
<%@ Register Assembly="BySoft.Web.Controls" Namespace="BySoft.Web.Controls" TagPrefix="cc1" %>
<asp:Content ID="cphHeadContent" runat="server" ContentPlaceHolderID="HeadPlace">
    <script type="text/javascript">
        $(function () {
            $("#tabs").tabs({ show: function (event, ui) { iframeAutoFit(); } });
        })
    </script>
</asp:Content>
<asp:Content ID="cphContent" runat="server" ContentPlaceHolderID="EmptyMasteCPH">
    <h1 class="tit">BOM管理 >> <a href="BOMChangeList.aspx">BOM表>></a> 查看</h1>
    <br />
    <div class="tableStyle2">
        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <table border="0" cellspacing="0" cellpadding="0" style="text-align: left; width: 100%"
                    id="tBase" runat="server">
                    <tr>
                        <th class="left2">号码</th>
                        <td class="right2">
                            <asp:Label ID="lblBOMID" runat="server" CssClass="lblreadonly"></asp:Label></td>
                        <th class="left2">日期：
                        </th>
                        <td class="right2">
                            <asp:Label ID="lblBillDate" runat="server" CssClass="lblreadonly"></asp:Label></td>
                    </tr>
                    <tr>
                        <th class="left2">产品编号：</th>
                        <td class="right2">
                            <asp:TextBox ID="txtProductID" runat="server" CssClass="lblreadonly"></asp:TextBox>
                            <asp:HiddenField ID="hdWorkOrderNo" runat="server" />
                        </td>
                        <th class="left2">产品名称：</th>
                        <td class="right2">
                            <asp:TextBox ID="txtProductName" runat="server" CssClass="lblreadonly"></asp:TextBox></td>
                    </tr>
                    <tr>
                        <th class="left2">单位：</th>
                        <td class="right2">
                            <asp:TextBox ID="txtUnit" runat="server" CssClass="lblreadonly"></asp:TextBox></td>
                        <th class="left2"></th>
                        <td class="right2"></td>
                    </tr>
                    <tr>
                        <th class="left2">备注：</th>
                        <td class="right2" colspan="3">
                            <asp:Label ID="lblRemark" runat="server" CssClass="lblreadonly"></asp:Label></td>
                    </tr>
                </table>
            </ContentTemplate>
        </asp:UpdatePanel>
    </div>
    <div class="tableStyle">
        <div id="tabs">
            <ul>
                <li><a href="#tabs-1">用料明细</a></li>
                <li><a href="#tabs-2">刀具明细</a></li>
            </ul>
            <div id="tabs-1">
                <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                    <ContentTemplate>
                        <div style="width: 100%; padding-bottom: 10px">
                            <div align="right">
                            </div>
                        </div>
                        <div>
                            <asp:SGridView runat="server" ID="grdResult" Width="100%" ShowActionToolBar="false"
                                AutoGenerateColumns="false" AllowCascade="false" >
                                <Columns>
                                    <asp:TemplateField HeaderText="BOM明细编号" ItemStyle-CssClass="Hidden" FooterStyle-CssClass="Hidden" HeaderStyle-CssClass="Hidden">
                                        <ItemTemplate>
                                            <asp:Label ID="lblBOMDetailID" Text='<%#Eval("BOMDetailID") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="序号">
                                        <ItemTemplate>
                                            <asp:Label ID="lblOrderNum" Text='<%#Eval("OrderNum") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="是否直接材料">
                                        <ItemTemplate>
                                            <asp:Label ID="lblIsDirectName" Text='<%#Eval("IsDirectName") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="原料编号">
                                        <ItemTemplate>
                                            <asp:Label ID="lblMaterialID" runat="server" Text='<%#Eval("MaterialID") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="原料品名">
                                        <ItemTemplate>
                                            <asp:Label ID="lblMaterialName" Text='<%#Eval("MaterialName") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="规格">
                                        <ItemTemplate>
                                            <asp:Label ID="lblSpecifications" Text='<%#Eval("Specifications") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="单位">
                                        <ItemTemplate>
                                            <asp:Label ID="lblUnit" Text='<%#Eval("Unit") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="长">
                                        <ItemTemplate>
                                            <asp:Label ID="lblLong" Text='<%#Eval("Long") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="宽">
                                        <ItemTemplate>
                                            <asp:Label ID="lblWidth" Text='<%#Eval("Width") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="高">
                                        <ItemTemplate>
                                            <asp:Label ID="lblHeight" Text='<%#Eval("Height") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="外径">
                                        <ItemTemplate>
                                            <asp:Label ID="lblOutSide" Text='<%#Eval("OutSide") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="内径">
                                        <ItemTemplate>
                                            <asp:Label ID="lblInSide" Text='<%#Eval("InSide") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="单件毫米数">
                                        <ItemTemplate>
                                            <asp:Label ID="txtMMNumber" Text='<%#Eval("MMNumber") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="单件重量">
                                        <ItemTemplate>
                                            <asp:Label ID="txtSingleWeight" Text='<%#Eval("SingleWeight") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="单件数量">
                                        <ItemTemplate>
                                            <asp:Label ID="txtSingleNum" Text='<%#Eval("SingleNum") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:SGridView>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
            <div id="tabs-2">
                <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                    <ContentTemplate>
                        <div style="width: 100%; padding-bottom: 10px">
                            <div align="right">
                            </div>
                        </div>
                        <div>
                            <asp:SGridView runat="server" ID="grdKnife" Width="100%" ShowActionToolBar="false"
                                AutoGenerateColumns="false" AllowCascade="false">
                                <Columns>
                                    <asp:TemplateField HeaderText="BOM刀具明细编号" ItemStyle-CssClass="Hidden" FooterStyle-CssClass="Hidden" HeaderStyle-CssClass="Hidden">
                                        <ItemTemplate>
                                            <asp:Label ID="lblBOMKnifeID" Text='<%#Eval("BOMKnifeID") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="序号">
                                        <ItemTemplate>
                                            <asp:Label ID="lblOrderNum" Text='<%#Eval("OrderNum") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="刀具编号">
                                        <ItemTemplate>
                                            <asp:Label ID="lblKnifeID" runat="server" Text='<%#Eval("KnifeID") %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="刀具名称">
                                        <ItemTemplate>
                                            <asp:Label ID="lblKnifeName" Text='<%#Eval("KnifeName") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="规格">
                                        <ItemTemplate>
                                            <asp:Label ID="lblSpecifications" Text='<%#Eval("Specifications") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="数量" ItemStyle-CssClass="Hidden" HeaderStyle-CssClass="Hidden">
                                        <ItemTemplate>
                                            <asp:Label ID="lblNums" Text='<%#Eval("Nums") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="刀具状态">
                                        <ItemTemplate>
                                            <asp:Label ID="lblKnifeStatus" Text='<%#Eval("KnifeStatus") %>' runat="server"></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:SGridView>
                        </div>
                    </ContentTemplate>
                </asp:UpdatePanel>
            </div>
        </div>
    </div>
    <div class="controlBar" align="center">
        <table cellpadding="0" cellspacing="0" style="width: 300px; margin: 0 auto;">
            <tr>
                <td colspan="4">
                    <label class="btnStylec png_bg">
                        <input type="button" id="Button2" value="返回" runat="server" onclick="window.location = 'BOMChangeList.aspx'"
                            class="png_bg" />
                    </label>
                </td>
            </tr>
        </table>
    </div>
</asp:Content>